package com.example.oversea_home_spring.mapper;

import com.example.oversea_home_spring.bean.Order;
import com.example.oversea_home_spring.bean.Rent;
import com.example.oversea_home_spring.bean.User;
import com.example.oversea_home_spring.bean.Warehouse;

import java.util.List;

public interface TraderMapper {

    //发布订单
    int addOneOrder(Order order);


    //修改订单
    int updateOneOrder(Order order);

    //查询订单状态
    List<Order> selectMyOrder(String traderId);

    //查询工人：根据工人id
    User selectWorker(String workerId);


    //租用仓库
    int addOneWarehouse(Rent rent);

    //我的仓库
    List<Rent> selectMyHouse(String traderId);

    //所有仓库
    List<Warehouse> selectAllHouse();
}
